package com.lifesea.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GhTakeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GhTakeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTakeIdIsNull() {
            addCriterion("TAKE_ID is null");
            return (Criteria) this;
        }

        public Criteria andTakeIdIsNotNull() {
            addCriterion("TAKE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTakeIdEqualTo(Long value) {
            addCriterion("TAKE_ID =", value, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdNotEqualTo(Long value) {
            addCriterion("TAKE_ID <>", value, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdGreaterThan(Long value) {
            addCriterion("TAKE_ID >", value, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("TAKE_ID >=", value, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdLessThan(Long value) {
            addCriterion("TAKE_ID <", value, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdLessThanOrEqualTo(Long value) {
            addCriterion("TAKE_ID <=", value, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdIn(List<Long> values) {
            addCriterion("TAKE_ID in", values, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdNotIn(List<Long> values) {
            addCriterion("TAKE_ID not in", values, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdBetween(Long value1, Long value2) {
            addCriterion("TAKE_ID between", value1, value2, "takeId");
            return (Criteria) this;
        }

        public Criteria andTakeIdNotBetween(Long value1, Long value2) {
            addCriterion("TAKE_ID not between", value1, value2, "takeId");
            return (Criteria) this;
        }

        public Criteria andHosIdIsNull() {
            addCriterion("HOS_ID is null");
            return (Criteria) this;
        }

        public Criteria andHosIdIsNotNull() {
            addCriterion("HOS_ID is not null");
            return (Criteria) this;
        }

        public Criteria andHosIdEqualTo(Integer value) {
            addCriterion("HOS_ID =", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdNotEqualTo(Integer value) {
            addCriterion("HOS_ID <>", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdGreaterThan(Integer value) {
            addCriterion("HOS_ID >", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("HOS_ID >=", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdLessThan(Integer value) {
            addCriterion("HOS_ID <", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdLessThanOrEqualTo(Integer value) {
            addCriterion("HOS_ID <=", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdIn(List<Integer> values) {
            addCriterion("HOS_ID in", values, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdNotIn(List<Integer> values) {
            addCriterion("HOS_ID not in", values, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdBetween(Integer value1, Integer value2) {
            addCriterion("HOS_ID between", value1, value2, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdNotBetween(Integer value1, Integer value2) {
            addCriterion("HOS_ID not between", value1, value2, "hosId");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNull() {
            addCriterion("BOOK_ID is null");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNotNull() {
            addCriterion("BOOK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andBookIdEqualTo(Long value) {
            addCriterion("BOOK_ID =", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotEqualTo(Long value) {
            addCriterion("BOOK_ID <>", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThan(Long value) {
            addCriterion("BOOK_ID >", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThanOrEqualTo(Long value) {
            addCriterion("BOOK_ID >=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThan(Long value) {
            addCriterion("BOOK_ID <", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThanOrEqualTo(Long value) {
            addCriterion("BOOK_ID <=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdIn(List<Long> values) {
            addCriterion("BOOK_ID in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotIn(List<Long> values) {
            addCriterion("BOOK_ID not in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdBetween(Long value1, Long value2) {
            addCriterion("BOOK_ID between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotBetween(Long value1, Long value2) {
            addCriterion("BOOK_ID not between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdIsNull() {
            addCriterion("OUT_BOOK_ID is null");
            return (Criteria) this;
        }

        public Criteria andOutBookIdIsNotNull() {
            addCriterion("OUT_BOOK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOutBookIdEqualTo(String value) {
            addCriterion("OUT_BOOK_ID =", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdNotEqualTo(String value) {
            addCriterion("OUT_BOOK_ID <>", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdGreaterThan(String value) {
            addCriterion("OUT_BOOK_ID >", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdGreaterThanOrEqualTo(String value) {
            addCriterion("OUT_BOOK_ID >=", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdLessThan(String value) {
            addCriterion("OUT_BOOK_ID <", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdLessThanOrEqualTo(String value) {
            addCriterion("OUT_BOOK_ID <=", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdLike(String value) {
            addCriterion("OUT_BOOK_ID like", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdNotLike(String value) {
            addCriterion("OUT_BOOK_ID not like", value, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdIn(List<String> values) {
            addCriterion("OUT_BOOK_ID in", values, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdNotIn(List<String> values) {
            addCriterion("OUT_BOOK_ID not in", values, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdBetween(String value1, String value2) {
            addCriterion("OUT_BOOK_ID between", value1, value2, "outBookId");
            return (Criteria) this;
        }

        public Criteria andOutBookIdNotBetween(String value1, String value2) {
            addCriterion("OUT_BOOK_ID not between", value1, value2, "outBookId");
            return (Criteria) this;
        }

        public Criteria andTakeTimeIsNull() {
            addCriterion("TAKE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andTakeTimeIsNotNull() {
            addCriterion("TAKE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andTakeTimeEqualTo(Date value) {
            addCriterion("TAKE_TIME =", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeNotEqualTo(Date value) {
            addCriterion("TAKE_TIME <>", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeGreaterThan(Date value) {
            addCriterion("TAKE_TIME >", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("TAKE_TIME >=", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeLessThan(Date value) {
            addCriterion("TAKE_TIME <", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeLessThanOrEqualTo(Date value) {
            addCriterion("TAKE_TIME <=", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeIn(List<Date> values) {
            addCriterion("TAKE_TIME in", values, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeNotIn(List<Date> values) {
            addCriterion("TAKE_TIME not in", values, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeBetween(Date value1, Date value2) {
            addCriterion("TAKE_TIME between", value1, value2, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeNotBetween(Date value1, Date value2) {
            addCriterion("TAKE_TIME not between", value1, value2, "takeTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeIsNull() {
            addCriterion("CLINIC_TIME is null");
            return (Criteria) this;
        }

        public Criteria andClinicTimeIsNotNull() {
            addCriterion("CLINIC_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andClinicTimeEqualTo(Date value) {
            addCriterion("CLINIC_TIME =", value, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeNotEqualTo(Date value) {
            addCriterion("CLINIC_TIME <>", value, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeGreaterThan(Date value) {
            addCriterion("CLINIC_TIME >", value, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CLINIC_TIME >=", value, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeLessThan(Date value) {
            addCriterion("CLINIC_TIME <", value, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeLessThanOrEqualTo(Date value) {
            addCriterion("CLINIC_TIME <=", value, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeIn(List<Date> values) {
            addCriterion("CLINIC_TIME in", values, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeNotIn(List<Date> values) {
            addCriterion("CLINIC_TIME not in", values, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeBetween(Date value1, Date value2) {
            addCriterion("CLINIC_TIME between", value1, value2, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andClinicTimeNotBetween(Date value1, Date value2) {
            addCriterion("CLINIC_TIME not between", value1, value2, "clinicTime");
            return (Criteria) this;
        }

        public Criteria andTakeStatusIsNull() {
            addCriterion("TAKE_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andTakeStatusIsNotNull() {
            addCriterion("TAKE_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andTakeStatusEqualTo(Short value) {
            addCriterion("TAKE_STATUS =", value, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusNotEqualTo(Short value) {
            addCriterion("TAKE_STATUS <>", value, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusGreaterThan(Short value) {
            addCriterion("TAKE_STATUS >", value, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("TAKE_STATUS >=", value, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusLessThan(Short value) {
            addCriterion("TAKE_STATUS <", value, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusLessThanOrEqualTo(Short value) {
            addCriterion("TAKE_STATUS <=", value, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusIn(List<Short> values) {
            addCriterion("TAKE_STATUS in", values, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusNotIn(List<Short> values) {
            addCriterion("TAKE_STATUS not in", values, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusBetween(Short value1, Short value2) {
            addCriterion("TAKE_STATUS between", value1, value2, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andTakeStatusNotBetween(Short value1, Short value2) {
            addCriterion("TAKE_STATUS not between", value1, value2, "takeStatus");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIsNull() {
            addCriterion("SUBMIT_TIME is null");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIsNotNull() {
            addCriterion("SUBMIT_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeEqualTo(Date value) {
            addCriterion("SUBMIT_TIME =", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotEqualTo(Date value) {
            addCriterion("SUBMIT_TIME <>", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeGreaterThan(Date value) {
            addCriterion("SUBMIT_TIME >", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("SUBMIT_TIME >=", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeLessThan(Date value) {
            addCriterion("SUBMIT_TIME <", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeLessThanOrEqualTo(Date value) {
            addCriterion("SUBMIT_TIME <=", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIn(List<Date> values) {
            addCriterion("SUBMIT_TIME in", values, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotIn(List<Date> values) {
            addCriterion("SUBMIT_TIME not in", values, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeBetween(Date value1, Date value2) {
            addCriterion("SUBMIT_TIME between", value1, value2, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotBetween(Date value1, Date value2) {
            addCriterion("SUBMIT_TIME not between", value1, value2, "submitTime");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table gh_take
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}